package com.googlecode.likesql.dml;

import com.googlecode.likesql.SeriallLikeSql;
import com.googlecode.likesql.constant.Keyword;
import com.googlecode.likesql.context.SerialSqlContext;

/**
 * @author Johny Huang
 * 
 */
public class Where extends SeriallLikeSql {

	public Where(SerialSqlContext context) {
		super(context);
	}

	public Where where(Object exp) {
		context.appendSP(Keyword.WHERE).appendSP("?", exp);
		return this;
	}

	public OrderBy orderBy(String columns) {
		return new OrderBy(context).orderBy(columns);
	}

	public GroupBy groupBy(String columns) {
		return new GroupBy(context).groupBy(columns);
	}
}
